package cz.muni.fi.stripesdemo.controller;

import java.util.Date;
import net.sourceforge.stripes.action.ActionBean;
import net.sourceforge.stripes.action.ActionBeanContext;


/**
 * this is BaseActionBean - should be super class for all action beans
 */
public class BaseActionBean implements ActionBean {
    private ActionBeanContext context;

    //private Date currentDate;
    
    
    public String getCurrentDate() {
        return (new Date()).toString();
    }    
    
    @Override
    public ActionBeanContext getContext() {
        return context;
    }
    @Override
    public void setContext(ActionBeanContext context) {
        this.context = context;
    }
            
}